<div class="{$class_row|default='input-group mb-3'}">
  <input class="{$class_input|default='form-control'}" name="{$name}" id="{$name}" type="text" value="{$value}" placeholder="{$placeholder}" autocomplete="off" {if $readonly}readonly{/if} {if $disabled} disabled{/if}>
  <input type="file" class="d-none" accept="image/*" id="{$name}_image" data-target="#{$name}" data-path="{:dcUrl('index/upload/image')}">
  <button class="btn btn-outline-secondary btn-preview" type="button" data-target="#{$name}">预览</button>
  <button class="btn btn-secondary btn-upload" type="button" data-target="#{$name}_image">上传</button>
</div>